package com;

import com.BaseAction;
import com.admin.User;

public class LogoutAction extends BaseAction {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8104059248229684979L;


	public String execute() {
		session.invalidate();
		return "success";
	}
	
	
	protected  void logout() {
		
		session.invalidate();
	}


	public void sfcs() {
		User loginuser = (User)session.get(Constants.USER);
		if(loginuser==null) {
			 jsonWriter("0");
			
		}else {
			
			 jsonWriter("1");
		}
		return;
	}
}